﻿//-----------------------------------------------------------------------
// <copyright file="WorkItemDataContractUnitTest.cs" company="CodePlex">
//     Copyright (c) Doug Holland, CodePlex. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace CodePlex.Diagnostics.Contracts
{
    using System;

    using Microsoft.VisualStudio.TestTools.UnitTesting;

    /// <summary>
    /// Provides unit tests for the <see cref="T:CodePlex.Diagnostics.Contracts.WorkItemDataContract"/> class.
    /// </summary>
    [TestClass]
    public sealed class WorkItemDataContractUnitTest
    {
        #region public WorkItemDataContractUnitTest()

        /// <summary>
        /// Initializes a new instance of the <see cref="T:WorkItemDataContractUnitTest"/> class.
        /// </summary>
        public WorkItemDataContractUnitTest()
        {
        }

        #endregion

        #region public TestContext TestContext

        /// <summary>
        /// Gets or sets the test context which provides information about and functionality for the current test run.
        /// </summary>
        public TestContext TestContext
        {
            get;
            set;
        }

        #endregion

        #region public void WorkItemDataContractConstructorUnitTest()

        /// <summary>
        /// Ensures that the constructor of the <see cref="T:CodePlex.Diagnostics.Contracts.WorkItemDataContract"/> class is correctly copying the values from the supplied <see cref="T:System.WorkItem"/> instance.
        /// </summary>
        [TestMethod]
        public void WorkItemDataContractConstructorUnitTest()
        {
            // establish a new instance of the WorkItemDataContract class.
            WorkItemDataContract workItem = new WorkItemDataContract();

            // TODO: complete unit test for WorkItemDataContract class.

            // ensure the work item successfully constructed.
            Assert.IsNotNull(workItem);
        }

        #endregion
    }
}   